from rest_framework.serializers import ModelSerializer   #导入模型类序列化器
from rest_framework import serializers  #普通序列化器
from .models import *   #导入model中的模型类

class Cart111mSer(ModelSerializer):
    class Meta:
        model = Cart111
        fields = '__all__'

#注册
class UserRegisterSer(ModelSerializer):
    class Meta:
        model = USerregister
        fields = '__all__'

#获取新闻序列化器
class CarLoginmanageSer(ModelSerializer):
    class Meta:
        model = NewPress
        fields = '__all__'